home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
SourceCode
/
GameKit
/
Headers
/
gamekit
/
GKCollisionGroup.h
< prev
next >
Wrap
Text File
|
1995-06-12
|
633b
|
30 lines
#import <gamekit/gamekit.h>
@interface GKCollisionGroup:Object
{
int tag;
id actorLists[2]; // we basically do a "cross product" of these lists
id collisionDetector; // object that can detect collisions between actors
id delegate;
}
- init;
// setting and getting tags
- (int)tag;
- setTag:(int)anInt;
// adding and removing actors from the collision list
- addActor:anActor toList:(int)number;
- removeActor:anActor fromList:(int)number;
// setting and getting the delegate
// (delegate gets sent -actor:collidedWith: for each collision detected)
- delegate;
- setDelegate:anObject;
- calculateCollisions:sender;
@end